package com.haizhi.crm.biz.task.message.handler;

import com.haizhi.crm.biz.task.message.model.ContextDto;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by wangshan on 2018/5/29.
 */
@Component
public class PushFlagHandler extends AbstractHandler<ContextDto> {

    @Override
    protected MsgResponse process(ContextDto data) {
        Map datas = data.getMessageUserVoMap();
        if (datas.isEmpty()) {
            return MsgResponse.error("need push data is null" );
        }
        return MsgResponse.success();
    }

}
